﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>

<%@ Page Language="C#" AutoEventWireup="true" DynamicMasterPageFile="~masterurl/default.master" Inherits="Slam.Administration.Diagnostics, Slam, Version=2.1.0.0, Culture=neutral, PublicKeyToken=28f8d30936a98765" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="PageTitle"
						Text="SLAM Control Panel - Diagnostics"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="TitleArea"
						Text="SLAM Control Panel - Diagnostics"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
	<div>View Diagnostic information useful for debugging SLAM issues.</div>
	<br />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">
	<table class=propertysheet border="0" width="100%" cellspacing="0" cellpadding="0" id="formTable">
		<asp:Panel ID="optionsPanel" runat="server">
			<wssuc:InputFormSection runat="server" Title="View Recent Messages" Description="View recent informational and error messages logged in SLAM's message log table from the last 30 days." >
				<Template_InputFormControls>
					<asp:Button ID="btnViewMessages" Text="View Messages" runat="server" CssClass="ms-ButtonHeightWidth" OnClick="btnViewMessages_Click" />
				</Template_InputFormControls>
			</wssuc:InputFormSection>
		</asp:Panel>
		
		<asp:Panel ID="messagesPanel" runat="server">
		<tr>
			<td>
				<asp:Label ID="lblErrorMessages" runat="server" ForeColor="Red"></asp:Label>
				<SharePoint:SPGridView ID="gvTopErrorMessages" AutoGenerateColumns="false" runat="server">
					<EmptyDataTemplate>
						There are no SLAM error messages from the last 30 days.
					</EmptyDataTemplate>
					<EmptyDataRowStyle Font-Size="12px" />
					<Columns>
						<asp:BoundField ItemStyle-Width="140px" DataField="MessageDate" ShowHeader="true" HeaderText="Date" />
						<asp:BoundField ItemStyle-Width="90px" DataField="MessageType" ShowHeader="true" HeaderText="Type" />
						<asp:BoundField DataField="Message" ShowHeader="true" HeaderText="Message" />
					</Columns>
				</SharePoint:SPGridView>
			</td>
		</tr>
		</asp:Panel>
		
		<wssuc:buttonsection runat="server" ShowStandardCancelButton="false">
			<Template_Buttons>
				<asp:Button UseSubmitBehavior="false" runat="server" CssClass="ms-ButtonHeightWidth" Text="Back" id="btnBack" OnClick="btnBack_Click"/>
			</Template_Buttons>
		</wssuc:buttonsection>
	</table>
</asp:Content>
